home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 March / PCWorld_2002-03_cd.bin / Software / TemaCD / xteq / setup.exe / {app} / plugins / XQ BSOD 2.xpl < prev    next >
Text File  |  2000-12-13  |  2KB  |  65 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="8"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\System\BSOD"
  5. "NAME"="Back Color"
  6. "VERSION"="1.14"
  7. "LANGUAGE"="VBScript"
  8. "OSVERSION"="10101"
  9. "TEXT 1"="Set Color"
  10. "TEXT 2"="Reset Color"
  11. "DESCRIPTION 1"="This plug-in allows you to change the color of the background displayed on BSOD [Blue Screen of Death] error messages in Windows 9x/Me computers."
  12. "DESCRIPTION 2"="The default colors are "Blue" for background and "Bright White" for text color."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to AXCEL216@aol.com for the detailed information - please see http://members.aol.com/axcel216/ for lots of other great tips and tricks and write to AXCEL216@aol.com for more information."
  18.  
  19.  
  20. sFile="SYSTEM.INI"
  21. sSect="386enh"
  22. sVal_Text="MessageTextColor"
  23. sVal_Back="MessageBackColor"
  24. sCOL_NR=""
  25. sCOL_TX=""
  26. Sub Plugin_Initialize 
  27.     sCOL_NR=Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F")
  28.     sCOL_TX=Array("Black","Blue","Green","Cyan","Red","Magenta","Yellow/Brown","White","Gray","Bright Blue","Bright Green","Bright Cyan","Bright Red","Bright Magenta","Bright Yellow","Bright White")
  29.  
  30.     For i=0 to UBound(sCOL_TX)
  31.         Call SetUIElement(i+1,sCOL_TX(i))
  32.     Next
  33. End Sub
  34.  
  35. Sub Plugin_CheckData(ElementIndex)
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  If ElementIndex=1 then 'Set Color
  40.     if ElementSubIndex=0 then 
  41.        Call MsgWarning("No item selected - please select an item first.")
  42.        Exit Sub 'bye bye
  43.     end if
  44.  
  45.     s=sCOL_NR(ElementSubIndex-1)
  46.     Call IniWriteValue(sFile,sSect,sVal_Back,s)
  47.  
  48.  else 'Reset Color
  49.     's=RegReadValue(sp)
  50.     'if not IsEmpty(s) then
  51.     '   Call RegDeleteValue(sp)
  52.     'end if       
  53.     'Call MsgInformatioN("The default color has been restored")
  54.  end if
  55.  
  56.  
  57.  Call Logoff()
  58. End Sub
  59.  
  60. Sub Plugin_Terminate 
  61. End Sub
  62.  
  63.  
  64.  
  65.